// app.js
import { promisifyAll } from 'miniprogram-api-promise'
const wxp = (wx.p = {})
promisifyAll(wx, wxp)

App({
  onLaunch() {
    let mall_id = this.globalData.mall_id
    //const logs = wx.getStorageSync('logs') || []
    //logs.unshift(Date.now())
    //wx.setStorageSync('logs', logs)
  },
  api: 'https://helper.fuduoduoshop.com/api/mall-helper/v1',
  session: {},
  globalData: {
    mall_id: 13, //商城id
    API: 'https://helper.fuduoduoshop.com/api/mall-helper/v1',
    URL: 'https://extend.fuduoduoshop.com/api',
    userInfo: null,
    channelId: 0
  }
})
